#------
# Load configuration
#------
include config

#------
# Hopefully no need to change anything below this line
#------
VERSION=0.0.2
PACKAGE_BASE_NAME=RBackupUtil
PACKAGE_NAME=${PACKAGE_BASE_NAME}-${VERSION}

all: package

build: clean
	mkdir -p tmp/${PACKAGE_NAME}
	cp -rf bin conf lib log work tmp/${PACKAGE_NAME}
	find tmp/${PACKAGE_NAME} -name .svn | xargs rm -rf

package: build
	tar cvfz ${PACKAGE_NAME}.tgz --exclude=.svn tmp/${PACKAGE_NAME}

install : build
	cp -rf tmp/${PACKAGE_NAME} ${INSTALL}

clean:
	rm -rf tmp ${PACKAGE_NAME}.tgz
